package cn.nextProject;

import cn.nextProject.configs.MinioConfig;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.core.ApplicationContext;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@Slf4j
@MapperScan("cn.nextProject.mapper")
@EnableCaching
@ServletComponentScan
@EnableConfigurationProperties(MinioConfig.class)
public class Main {

    public static void main(String[] args) {
        log.debug("项目启动...");
        SpringApplication.run(Main.class, args);
        log.debug("项目启动成功!");
    }

}